package com.itcast.applet.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "购物车商品信息实体类")
public class ShoppingDh implements Serializable {

    @ApiModelProperty("主键值")
    private Long id;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("商品价格")
    private Double price;

    @ApiModelProperty("库存数量")
    private Integer number;

    @ApiModelProperty("商品表关联")
    private Long dityId;

    @ApiModelProperty("与用户逻辑外键绑定")
    private Long shoppingId;

}
